package com.example.commons.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_barrage")
public class Barrage {
    @Schema(title = "序列号")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("序列号")
    private Long id;

    @Schema(title = "视频ID")
    @TableField("vid")
    @ExcelProperty("视频ID")
    private Long vid;

    @Schema(title = "用户ID")
    @TableField("uid")
    @ExcelProperty("用户ID")
    private Long uid;

    @Schema(title = "弹幕内容")
    @TableField("content")
    @ExcelProperty("弹幕内容")
    private String content;

    @Schema(title = "弹幕颜色")
    @TableField("color")
    @ExcelProperty("弹幕颜色")
    private String color;

    @Schema(title = "弹幕类型")
    @TableField("type")
    @ExcelProperty("弹幕类型")
    private Integer type;

    @Schema(title = "弹幕输入时间")
    @TableField("time")
    @ExcelProperty("弹幕输入时间")
    private Double time;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
